/*用户消费信息类 特征：统计通话时长、统计上网流量、每月消费金额*/

import java.math.BigDecimal;

public class UserInfo {
    private double TalkTime;
    private double data;
    private BigDecimal payoffPerMonth;

    public UserInfo(double talkTime, double data, BigDecimal payoffPerMonth) {
        TalkTime = talkTime;
        this.data = data;
        this.payoffPerMonth = payoffPerMonth;
    }

    public void show() {
        System.out.println("用户累计通话" + TalkTime);
        System.out.println("用户累计流量" + data);
        System.out.println("用户每月消费" + payoffPerMonth);
    }
}
